package com.css.openapi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.css.openapi.entity.YhShbdkpyDO;
import com.css.openapi.mapper.YhShbdkpyMapper;
import com.css.openapi.service.YhShbdkpyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 开票员绑定实现类
 * </p>
 *
 * @author zhuowugong
 * @since 2024-11-12 09:58:16
 */
@Slf4j
@Service
public class YhShbdkpyServiceImpl extends ServiceImpl<YhShbdkpyMapper, YhShbdkpyDO> implements YhShbdkpyService {


    /**
     * 根据开票员绑定编号查询开票员
     *
     * @param kpybdbh kpybdbh
     * @return {@link YhShbdkpyDO }
     */
    @Override
    public YhShbdkpyDO queryByKpybdbh(String kpybdbh) {
        return lambdaQuery().eq(YhShbdkpyDO::getKpybdbh, kpybdbh).last("LIMIT 1").one();
    }
}

